﻿@model Lion.WeiXin.Core.Models.OrderModel
@{
    Layout = "~/Views/Shared/_AppLayout.cshtml"; 
}
@section ChildPageJs {
    <script src="/Scripts/App_Scripts/WeiXinCheckBill.js" type="text/javascript"></script>
}
<div id="divPay">
    <ul id="olOrder" data-role="listview" data-inset="true">
        @if (Model.AID == 0)
        {
            <li><a href="#">
                <h2>无记录</h2>
            </a></li>  
        }
        else
        {                 
        
            <li id="liHeader" data-role="list-divider">
                <p>订单号：<span id="order_Code">@Model.Code</span></p>
                <h2 style="color: red">订单总计：<span id="order_total">@Model.Total</span> 元</h2>
                <p>时间：<span id="order_CreateDate">@Model.CreateDate</span></p>
            </li>
            foreach (Lion.WeiXin.Core.Models.Order_DetailsModel item in Model.OrderItems)
            {
            <li class="data" data-shadow="false">
                <input type="hidden" id="AID_@item.Pro_ID" name="AID" value="@item.Pro_ID"/>
                <input type="hidden" id="price" name="price" value="@item.Price"/>
                <a href="#">
                    <img src="@item.Image" style="width:100%;height:100%;" />
                    <p style="margin: 0px;">@item.ProductName </p>
                    <p>￥ <span id="pPrice" style="color: red">@item.BuyPrice</span> 数量：<span id="spQuantity">@item.Quantity</span></p>
                    <p style="margin: 0px;">小计： <span id="total">@(item.BuyPrice * item.Quantity)</span></p>
                </a>
            </li> 
            }
        }
    </ul>
    <form id="fmSave" method="post" action="/WeiXin/PayBill">
        <div data-role="fieldcontain">
            <div data-role="fieldcontain" data-mini="true">
                <input type="hidden" id="AID" name="AID" value="@Model.AID" />
                <input type="hidden" id="Buyer" name="Buyer" value="@Model.Buyer" />
                <input type="password" id="Password" name="Password" placeholder="输入会员卡支付密码" />
            </div>
            <div data-role="fieldcontain" data-mini="true">
                <input type="text" id="Buyer_Phone" name="Buyer_Phone" value="@ViewBag.Phone" placeholder="填写电话号码，好方便我们及时联系您" />
            </div>
            <div data-role="fieldcontain" data-mini="true">
                <textarea cols="40" rows="8" name="Buyer_Note" id="Buyer_Note" placeholder="请填写几点在什么地方接您"></textarea>
            </div>
            <div>
                <input type="submit" id="btnSave" value="支 付" />
            </div>
        </div>
    </form>
</div>


